package com.task.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.PluginPlatformInfo;
import com.task.core.dto.request.PluginPlatformRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/4 17:33
 */
@Mapper
public interface PluginPlatformMapper {

  List<PluginPlatformInfo> getPluginPlatformByPage(PluginPlatformRequestDTO request);

  PluginPlatformInfo getPluginPlatformByCode(PluginPlatformRequestDTO request);

  List<KeyAndValue> getPluginPlatformForOption(PluginPlatformRequestDTO request);

  void addPluginPlatform(PluginPlatformRequestDTO request);

  Integer modifyPluginPlatform(PluginPlatformRequestDTO request);

  Integer deletePluginPlatform(@Param("code") String pluginPlatformCode, @Param("userId") Long userId);

    PluginPlatformInfo getPluginPlatformById(@Param("code")String code);

    List<String> getPlugCodeByPluginPlatformCode(String code);
}
